package jtk.project4.fleet.domain;

import java.util.Date;

public class PartHist {
	private Integer partHistId;
	private Integer objectId;
	private Integer historyId;
	private Integer partId;
	private Integer recId;
	private Integer warehouseId;
	private Integer pmId;
	private Integer vendorId;
	private String partNo;
	private String desc;
	private Float used;
	private Float unitCost;
	private Character inv;
	private String name;
	private Date date;
	private String poNo;
	private Float mCost;
	private Integer costCenter;
	private Date createDate;
	private Integer createId;
	private Date modifyDate;
	private Integer modifyId;
	private Float eCost;
	
	
	public void setECost(Float eCost) {
		this.eCost = unitCost * used;
	}
	public Float getECost() {
		return eCost;
	}
	
	public Integer getPartHistId() {
		return partHistId;
	}
	public void setPartHistId(Integer partHistId) {
		this.partHistId = partHistId;
	}
	
	public Integer getObjectId() {
		return objectId;
	}
	public void setObjectId(Integer objectId) {
		this.objectId = objectId;
	}

	public Integer getHistoryId() {
		return historyId;
	}
	public void setHistoryId(Integer historyId) {
		this.historyId = historyId;
	}
	
	public Integer getPartId() {
		return partId;
	}
	public void setPartId(Integer partId) {
		this.partId = partId;
	}
	
	public Integer getRecId() {
		return recId;
	}
	public void setRecId(Integer recId) {
		this.recId = recId;
	}
	
	public Integer getWarehouseId() {
		return warehouseId;
	}
	public void setWarehouseId(Integer warehouseId) {
		this.warehouseId = warehouseId;
	}

	public Integer getPmId() {
		return pmId;
	}
	public void setPmId(Integer pmId) {
		this.pmId = pmId;
	}
	
	public Integer getVendorId() {
		return vendorId;
	}
	public void setVendorId(Integer vendorId) {
		this.vendorId = vendorId;
	}
	
	public String getPartNo() {
		return partNo;
	}
	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}
	
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public Float getUsed() {
		return used;
	}
	public void setUsed(Float used) {
		this.used = used;
	}
	
	public Float getUnitCost() {
		return unitCost;
	}
	public void setUnitCost(Float unitCost) {
		this.unitCost = unitCost;
	}
	
	public Character getInv() {
		return inv;
	}
	public void setInv(Character inv) {
		this.inv = inv;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	public String getPoNo() {
		return poNo;
	}
	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}

	public Float getMCost() {
		return mCost;
	}
	public void setMCost(Float mCost) {
		this.mCost = mCost;
	}

	public Integer getCostCenter() {
		return costCenter;
	}
	public void setCostCenter(Integer costCenter) {
		this.costCenter = costCenter;
	}

	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getCreateId() {
		return createId;
	}
	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getModifyId() {
		return modifyId;
	}
	public void setModifyId(Integer modifyId) {
		this.modifyId = modifyId;
	}
}
